package org.example.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("tra_memory")//说明这个类跟数据库中的tra_memory建立连接。
public class TraMemory {
    @TableId
    private int id;
    private String title;
    private  int typeid;
    private  String pic;
    private  String content;
    private int uid;
    private String pubtime;
//    @TableField(exist = false)//忽略这两个字段，让原来的查询不要带上这两个字段，我们自己写的则不受限制。
//
//    private String username;
//    @TableField(exist = false)
//
//    private String name;


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getTypeid() {
        return typeid;
    }

    public void setTypeid(int typeid) {
        this.typeid = typeid;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getPubtime() {
        return pubtime;
    }

    public void setPubtime(String pubtime) {
        this.pubtime = pubtime;
    }

    @Override
    public String toString() {
        return "TraMemory{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", typeid=" + typeid +
                ", pic='" + pic + '\'' +
                ", content='" + content + '\'' +
                ", uid=" + uid +
                ", pubtime='" + pubtime + '\'' +
                '}';
    }
}
